package com.caigou.comm.base.network.interceptors

import okhttp3.Interceptor
import okhttp3.Response

/**
 * @author #Suyghur.
 * Created on 2021/09/13
 */
class BasicParamsInterceptor : Interceptor {

    override fun intercept(chain: Interceptor.Chain): Response {
        val originalRequest = chain.request()
        val originalHttpUrl = originalRequest.url

        val url = originalHttpUrl.newBuilder().apply {
        }.build()

        val request = originalRequest.newBuilder()
            .url(url)
            .method(originalRequest.method, originalRequest.body)
            .build()

        return chain.proceed(request)
    }
}